package org.jsola.contract.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.entity.BaseUpdateDO;

import java.util.Date;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 合同签署方签署记录
 *
 * @author JanusMix
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "con_party_sign")
public class PartySignDO extends BaseUpdateDO<Long> {

    private static final long serialVersionUID = 1L;

    /**
     * 签名详细网址
     */
    private String signDetailUrl;
    /**
     * 签署服务id
     */
    private String signServiceId;
    /**
     * 账户id
     */
    private String accountId;
    /**
     * 合同id
     */
    private Long contractId;
    /**
     * 印章id
     */
    private Long sealId;
    /**
     * 印章位置id
     */
    private Long sealPositionId;
    /**
     * 业务id(目前是公司id)
     */
    private String subjectId;
    /**
     * 签署时间
     */
    private Date signDate;
    /**
     * 签署状态
     */
    private Integer status;


    /**
     * 合同状态
     */
    @Transient
    private Integer contractStatus;
    /**
     * 合同发起日期
     */
    @Transient
    private Date contractPublishDate;
    /**
     * 合同名称
     */
    @Transient
    private String contractName;

    /**
     * 小程序合同是否展示
     */
    @Transient
    private Boolean contractAppShow;

}

